package cc.edge2.sns.models;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class RecentFriendDiary {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long recentFriendDialyId;
    @Persistent
	private Long referenceUserId;
    @Persistent
	private Long diaryId;
    
	public Long getDiaryId() {
		return diaryId;
	}
	public void setDiaryId(Long diaryId) {
		this.diaryId = diaryId;
	}
	public Long getRecentFriendDialyId() {
		return recentFriendDialyId;
	}
	public void setRecentFriendDialyId(Long recentFriendDialyId) {
		this.recentFriendDialyId = recentFriendDialyId;
	}
	public Long getReferenceUserId() {
		return referenceUserId;
	}
	public void setReferenceUserId(Long referenceUserId) {
		this.referenceUserId = referenceUserId;
	}
	public RecentFriendDiary() {
		super();
	}
	public RecentFriendDiary(Long referenceUserId) {
		super();
		this.referenceUserId = referenceUserId;
	}
	public RecentFriendDiary(Long referenceUserId, Long diaryId) {
		super();
		this.referenceUserId = referenceUserId;
		this.diaryId = diaryId;
	}
}
